package com.ssfeng.proxy2;

/**
 * Created by liyuhang on 2020-09-10.
 */
public class ProxyTest2 {

    public static void main(String[] args) {
        User user = new UserImpl();
        User userProxy = (User) MyProxy2.newProxyInstance(user, user.getClass().getInterfaces(), new MyProxyInvocationHandler(user));
        userProxy.myName();
    }
}
